package pers.litao.bit.commons.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author litao
 * @date 2021/04/02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginUserInfo {
    private Long userId;
    private String phone;
    /**
     * 0为零售商，1为供应商
     */
    private Integer identity;

    public String info(){
        return "||<<用户信息>>:用户ID->"+userId+";电话（登陆账号）->"+phone+";身份->"+(identity == 0 ? "零售商":"供应商");
    }
}
